package cn.gok.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigInteger;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
   // @TableId(type = IdType.AUTO)
    @TableId(type = IdType.INPUT)
    private Long id;
    private  String name;
    private Integer age;
    private  String email;
    //乐观锁
    @Version
    private Integer version;
    //逻辑删除的标志
    @TableLogic
    private Integer delted;
}
